-- GENERATED SPELL FOR [Shattered Sun Peacekeeper] --


function spell0_26253(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(25821,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26253', 2286, 1)
end

function spell1_26253(pUnit, Event) --@Incapacitating Shout,Self--
pUnit:FullCastSpellOnTarget(18328,pUnit)
pUnit:RegisterEvent('Sorts_26253', 8285, 1)
end

function spell2_26253(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26253', 5329, 1)
end

function spell3_26253(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26253', 2323, 1)
end

function Sorts_26253(pUnit, Event)
local choix_sorts_26253 = math.random(0, 3)
if choix_sorts_26253 == 0 then
pUnit:RegisterEvent('spell0_26253', 1, 1)
end
if choix_sorts_26253 == 1 then
pUnit:RegisterEvent('spell1_26253', 1, 1)
end
if choix_sorts_26253 == 2 then
pUnit:RegisterEvent('spell2_26253', 1, 1)
end
if choix_sorts_26253 == 3 then
pUnit:RegisterEvent('spell3_26253', 1, 1)
end
end

function mob26253_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26253', math.random(1500, 3000), 1)
end

function mob26253_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26253_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26253_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26253, 1, 'mob26253_Action')
RegisterUnitEvent(26253, 2, 'mob26253_Leave')
RegisterUnitEvent(26253, 3, 'mob26253_Kill')
RegisterUnitEvent(26253, 4, 'mob26253_Die')
